#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :yese_29.py
# @Time      :2020/6/23 11:05
# @Author    :Administrator


peoples = [ele for ele in range(1, 31)]
rms = []
print(peoples)
z = 1  # 开始报数
i = 1  # 起始位置
while len(peoples) > 15:
    if i > len(peoples):
        i = i % len(peoples)
    else:
        if z % 9 == 0:
            rms.append(peoples.pop(i - 1))
            z = 1
            i -= 1
        else:
            z += 1
        i += 1


print(peoples)
print(rms)
